package biz.impl;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import dao.CarmanageDao;
import entity.Carmanage;
import biz.CarmanageBiz;

public class CarmanageBizImpl implements CarmanageBiz {
	private CarmanageDao carmanageDao;

	public CarmanageDao getCarmanageDao() {
		return carmanageDao;
	}

	public void setCarmanageDao(CarmanageDao carmanageDao) {
		this.carmanageDao = carmanageDao;
	}

	public List<Carmanage> findByTime(Date begindate, Date enddate) {		
		return carmanageDao.findByTime(begindate,enddate);				
	}

	public List<Carmanage> findByCar() {
		return carmanageDao.findByCar();
	}

	public int add(Carmanage carmanage) {
		return carmanageDao.add(carmanage);
	}

	public List<Carmanage> findByCreateid(Integer createid) {
		return carmanageDao.findByCreateid(createid);
	}

	public List<Carmanage> findAll() {
		return carmanageDao.findAll();
	}

	public Carmanage findById(Integer id) {
		return carmanageDao.findById(id);
	}

	public int delete(Carmanage carmanage) {
		return carmanageDao.delete(carmanage);
	}}
